package cn.cau.epidemicsurveysystem.vo;

import cn.cau.epidemicsurveysystem.bean.EpidTemplateOptionBean;
import cn.cau.epidemicsurveysystem.bean.EpidTemplateQuestionBean;

import java.util.List;

/**
 * @projectName: gp2022
 * @package: cn.cau.epidemicsurveysystem.vo
 * @className: QuestionVO
 * @author: Eric
 * @description: 将一个问题及其所有的选项封装为一个视图对象
 * @date: 2022/2/28 17:22
 * @version: 1.0
 */
public class QuestionVO {
    private EpidTemplateQuestionBean question;
    private List<EpidTemplateOptionBean> options;

    public QuestionVO(EpidTemplateQuestionBean question, List<EpidTemplateOptionBean> options){
        this.question = question;
        this.options = options;
    }

    public EpidTemplateQuestionBean getQuestion() {
        return question;
    }

    public void setQuestion(EpidTemplateQuestionBean question) {
        this.question = question;
    }

    public List<EpidTemplateOptionBean> getOptions() {
        return options;
    }

    public void setOptions(List<EpidTemplateOptionBean> options) {
        this.options = options;
    }
}
